package com.example.xyxwebbackend001.model.DTO;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

// 标题类型内容块
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HeadingBlockDTO extends ContentBlockDTO {
    private String textContent;
    private Integer level;

    @Override
    @JsonIgnore
    public String getType() {
        return "heading";
    }
}
